﻿using DFGK_WMS.Model.Dto;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK.IService
{
    public interface IShelfService
    {
        /// <summary>
        /// 添加货架
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        bool AddShel(Shelf obj, out string message);
        /// <summary>
        /// 修改货架信息
        /// </summary>
        /// <param name="u"></param>
        /// <returns></returns>
        bool UpdShel(Shelf u, out string message);
        /// <summary>
        /// 删除货架信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelShel(long id);
        /// <summary>
        /// 显示货架信息
        /// </summary>
        /// <param name="hcode"></param>
        /// <param name="hname"></param>
        /// <param name="kid"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalCount"></param>
        /// <returns></returns>
        List<Shelf> GetShelList(string? hname, long kid, int pageIndex, int pageSize, out int totalCount);

        /// <summary>
        /// 根据id获取数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Shelf? GetShelById(long id);

        /// <summary>
        /// 根据库区选出货架
        /// </summary>
        /// <param name="aid"></param>
        /// <returns></returns>
        List<Shelf> GetAreaShelf(long aid);

        /// <summary>
        /// 获取货架
        /// </summary>
        /// <returns></returns>
        List<Menuitem> GetWarAreaShellList();
    }
}
